| |
 |
|
|
|
|
Fundamental Visual Basic Programming |
|
|
|
| |
 |
|
|
|
|
Working with Visual Basic Components |
|
|
|
| |
 |
|
|
|
|
Creating Application Interfaces |
|
|
|
| |
 |
|
|
|
|
Advanced Visual Basic Programming |
|
|
|
| |
 |
|
|
|
|
Database Programming Techniques |
|
|
|
| |
 |
|
|
|
|
Additional References |
|
|
|
| |
 |
|
|
|
|
Source Code and Programs Used in This Book |
|
|
|
| |
 |
|
|
|
|
Conventions and Special Elements Used in This Book |
|
|
|
| |
|
|
|
|
|
I
Getting Started with Visual Basic |
|
|
|
| |
|
|
|
|
|
1
Starting Out with Visual Basic |
|
|
|
| |
 |
|
|
|
|
What Is a Computer Program? |
|
|
|
| |
 |
|
|
|
|
Computer Programs and Programming Languages |
|
|
|
| |
 |
|
|
|
|
Visual Basic Is a Smart Language |
|
|
|
| |
 |
|
|
|
|
The Importance of Designing Your Program |
|
|
|
| |
 |
|
|
|
|
How Design Fits into the Programming Process |
|
|
|
| |
 |
|
|
|
|
Program Design in a Nutshell |
|
|
|
| |
 |
|
|
|
|
From Here . . . |
|
|
|
| |
|
|
|
|
|
2
Creating Your First Program |
|
|
|
| |
 |
|
|
|
|
Creating Your Program's User Interface |
|
|
|
| |
 |
|
|
|
|
Getting Started |
|
|
|
| |
 |
|
|
|
|
Saving Your Work |
|
|
|
| |
 |
|
|
|
|
Getting Information From the User |
|
|
|
| |
 |
|
|
|
|
Adding a TextBox Control |
|
|
|
| |
 |
|
|
|
|
Labeling Your Program's Controls |
|
|
|
| |
 |
|
|
|
|
Adding a Command Button |
|
|
|
| |
 |
|
|
|
|
Changing a Form's Properties |
|
|
|
| |
 |
|
|
|
|
Saving Your WorkAgain . . . |
|
|
|
| |
 |
|
|
|
|
Coding Your Program's Actions |
|
|
|
| |
 |
|
|
|
|
Responding to Events |
|
|
|
| |
 |
|
|
|
|
Specifying Event Procedures |
|
|
|
| |
 |
|
|
|
|
Writing Program Code |
|
|
|
| |
 |
|
|
|
|
Running Your Program |
|
|
|
| |
 |
|
|
|
|
From Here . . . |
|
|
|
| |
|
|
|
|
|
3
Visual Basic Building Blocks |
|
|
|
| |
 |
|
|
|
|
Forms |
|
|
|
| |
 |
|
|
|
|
Parts of a Form |
|
|
|
| |
 |
|
|
|
|
What Do Forms Do? |
|
|
|
| |
 |
|
|
|
|
Using Controls |
|
|
|
| |
 |
|
|
|
|
What Are Controls? |
|
|
|
| |
 |
|
|
|
|
Control Functions |
|
|
|
| |
 |
|
|
|
|
Exploring Properties |
|
|
|
| |
 |
|
|
|
|
Property Basics |
|
|
|
| |
 |
|
|
|
|
Common Properties |
|
|
|
| |
 |
|
|
|
|
Using Properties to Control an Object's Size |
|
|
|
| |
 |
|
|
|
|
Using Properties to Adjust an Object's Position |
|
|
|
| |
 |
|
|
|
|
Changing Properties at Runtime |
|
|
|
| |
 |
|
|
|
|
Using Properties to Control User Interaction |
|
|
|
| |
 |
|
|
|
|
Referencing Forms and Controls from Your Code |
|
|
|
| |
 |
|
|
|
|
A First Look at Methods and Events |
|
|
|
| |
 |
|
|
|
|
Taking Action with Methods |
|
|
|
| |
 |
|
|
|
|
Responding to Actions with Events |
|
|
|
| |
 |
|
|
|
|
How Properties and Methods Are Related |
|
|
|
| |
 |
|
|
|
|
Form Properties Revisited |
|
|
|
| |
 |
|
|
|
|
Displaying a Form |
|
|
|
| |
 |
|
|
|
|
From Here . . . |
|
|
|
| |